|
|
|
|
|
|
|
Figure 14.16.
Designing an HTML page by adding controls to the HTML work area. |
|
|
|
|
|
|
|
|
You should notice that as you add these controls to the HTML page, Visual Basic automatically adds the HTML source tags to the page source on the left side of the work area. In addition, you can add labels to the HTML page. |
|
|
|
|
|
|
|
|
Note You cannot display the code editor for a control by simply double-clicking the control. In the HTML page layout, all the controls are active. To view the code editor, you would right-click the control, and then select the View Source option. |
|
|
|
|
|
|
|
|
|
Display the OnClick routine for the command button and place the following code into the routine. |
|
|
|
|
|
|
|
|
BaseWindow.Alert Hello & Me.Text1.Value |
|
|
|
|
|
|
|
|
When you run the application, Visual Basic will start the default Web browser on your computer and display the startup page of the application. Then enter your name and click the Command button to execute the code you have added. This will display a message box within the Web browser which contains the message to the user as shown in Figure 14.17. |
|
|
|
|
|